Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify hd-key types. #120

Closed
wants to merge 1 commit into from
Closed

Conversation

jeandudey
Copy link

hd-key is not a map per se but the childs are.

`hd-key` is not a map per se but the childs are.
@wolfmcnally
Copy link
Collaborator

The use of braces and parentheses here is deliberate: in CDDL, braces represent maps, while parentheses represent interpolations. In other words, the key-value pairs you see within the parentheses are intended to be interpolated into higher-level maps, which were declared in the higher level structures. Your changes would semantically turn these interpolations into separate maps, which they are not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants